package com.project.config;

import com.project.entity.VerifyEntity;

public class LoginThreadLocal {

    private static final ThreadLocal<VerifyEntity> tl = new ThreadLocal<>();
    public static void saveLoginVerify(VerifyEntity verifyEntity){
        tl.set(verifyEntity);
    }
    public static VerifyEntity getLoginVerify(){
        return tl.get();
    }
    public static void removeLoginVerify(){
        tl.remove();
    }
}
